Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: JManager Reference /
Chapter 1 - JManager Reference / Application-Defined Functions
/


MyUniqueMenuID

Allocates a new menu ID. When instantiating an AWT context, you must designate a callback function to create new menu IDs if necessary. For example, this is how you would define your menu ID allocation function if you were to name it MyUniqueMenuID:

typedef SInt16 MyUniqueMenuID (
JMAWTContextRef context,
Boolean isSubmenu);
context
The AWT context containing the frame.
isSubMenu
A Boolean value. If isSubMenu is false, the menu to add is a standard menu. If isSubMenu is true, the menu is a submenu. The menu ID value of a submenu must be in the range 1 to 255.
function result
If successful, the function should return the ID of the new menu. Otherwise the function returns 0.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 DEC 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help